Click
AutomatR.Web.Click
The "Click" activity in AutomatR's Web Activities category is designed to simulate a click on a specified UI element within a web page. This activity is commonly used for interacting with buttons, links, or other clickable elements. The "Click" activity supports different technologies of the target application and provides options for simulating the click event, making it a faster alternative.
Properties
Name | Description |
---|---|
Input | |
Element | Select the browse button to indicate the element on the web with the help of the selector window. Use this when providing a selector for the clickable element. |
Simulate Event | When enabled, it simulates the click based on the technology of the target application and is a faster option. Boolean variable or expression containing the simulation preference. |
Web Element | Enter the UI Element variable identified by the "Find Element" or other activity. This variable represents the clickable element on the web page. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Timeout | Enter the time in seconds (e.g., 5) for the activity to be executed before throwing an exception. If not provided, a default timeout is used (specified in Constants). |
Delay | Enter the wait time in seconds (e.g., 5) to start the activity. This can be useful for handling synchronization issues. |
Output | |
Result | Outputs a boolean value indicating whether the click operation was successful. "True" indicates success, and "False" indicates failure. Use this output for further conditional branching or error handling in the workflow. |
How to use:
- Drag and drop the "Click" activity onto the workflow.
- Configure the properties by specifying the clickable element using either the "Element" or "Web Element" property.
- Optionally, enable the "Simulate Event" option for a faster click simulation.
- Optionally, configure the timeout and delay parameters.
- Execute the workflow to perform the specified click operation on the web page.
Example: Consider an example where the "Click" activity is used to simulate clicking a "Submit" button on a web form:
Click:
Element: submitButtonSelector
Simulate Event: true
Timeout: 10
Delay: 2
Result: isClickSuccessful
In this example, the activity simulates clicking the specified "Submit" button using the provided selector ("submitButtonSelector"). The result of the operation (success or failure) is stored in the boolean variable "isClickSuccessful" for further handling in the workflow.